package com.lihuinch.ti4j.chap3.practice;

/**
 * p49 3_10 练习
 *
 * @author lihuinch
 * @date 2018/1/3
 */
public class LogicalOperatorPra3C10 {
    public static void main(String[] args) {
        int aInt1 = 0X55555555;
        int aInt2 = 0Xaaaaaaaa;

        System.out.println(Integer.toBinaryString(aInt1));
        System.out.println(Integer.toBinaryString(aInt2));

        System.out.println(Integer.toBinaryString(aInt1 & aInt2));

        System.out.println(Integer.toBinaryString(aInt1 | aInt2));
    }
}
